package alvarodelrosal.chat.server.infraestructura;

public class ChatUsersDAO {

    public static ChatUsersPersistence getPersistence(String method) {
        if("memory".equals(method)) {
            return ChatUsersMemoryPersistence.getPersistence();
        } else if ("db".equals(method)) {
            return ChatUsersDBPersistence.getPersistence();
        }
        return null;
    }
    
}
